actionApp.controller('$rootScope','$scope','$http',function ($rootScope,$scope,$http) {
$scope.$on('viewContentLoaded',function () {
    console.log("页面加载完成")
});
$scope.search=function () {
    personName = $scope.personName;
    $http.get('search', {
        params: {personName: personName}
    }).success(function (data) {
        $scope.person = data;
    });
}});
actionApp.controller('$ViewContentLoaded',['$rootScope','$scope',function ($rootScope,$scope) {
    $scope.$on('$viewContentLoaded',function () {
        console.log("页面加载完毕")
    })
}]);